package uk.ac.rothamsted;

import java.util.ArrayList;
import java.util.List;

public class Cluster implements java.io.Serializable{

	private static final long serialVersionUID = 1116962624208907122L;
	private String seed;
	private List<Paralog> paralogs = new ArrayList<Paralog>();
	
	public Cluster(String setSeed){
		seed = setSeed;
	}
	
	public Cluster(String setSeed, List<Paralog> setParalogs){
		seed = setSeed;
		paralogs = setParalogs;
	}
	

	public void setSeed(String setSeed){
		seed = setSeed;
	}

	public void addParalog(Paralog addParalog){
		paralogs.add(addParalog);
	}
	
	
	public String getSeed(){
		return seed;
	}
	
	public List<Paralog> getParalogs(){
		return paralogs;
	}
	
	@Override
	public String toString(){
		return "Seed - " + seed + "\tParalogs - " + paralogs; 
	}
	
	public boolean isEmpty(){
		return (paralogs.size() == 0);
	}
	
	public int size(){
		return paralogs.size();
	}
	
}
